<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets">
    
    <h:head>
        <title>Add Teacher</title>
    </h:head>
    <f:view>
		<h:body>
			<ui:composition	template="../includes/template.xhtml">
		     	 <ui:define name="mainbody">
			          <center>
							<h:form>
							    
							    <h3>Basic PickList</h3>
							
							    <p:pickList id="pickList" value="#{pickListBean.courses}" converter="courseConverter"
									var="course" itemLabel="#{course.title}" itemValue="#{course}" />
							    <p:commandButton ajax="false" id="submit" value="Submit" type="submit" action="#{pickListBean.performAction}" />
							
							</h:form>
			            </center>
		           </ui:define>
	          </ui:composition>
       </h:body>
    </f:view>
</html>
                    